package com.imooc.productviewservicefeign2.client;

import com.imooc.productviewservicefeign2.pojo.product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @program: springcloud_demo
 * @description:
 * @author: ZhangKai
 * @create: 2019-09-17 21:29
 **/

@FeignClient(value = "product-data-service",fallback = productclientfeignyystrix.class)
public interface productclientfeign {

    @GetMapping("/products")
    public List<product> listProducts();
}
